* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 顶部悬停触发区域 */
#hover-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px; /* 预留的悬停区域高度 */
    z-index: 100;
    background-color: transparent; /* 完全透明 */
    cursor: pointer;
}

/* 搜索框容器 - 固定定位 */
#search-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    display: none; /* 默认隐藏 */
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 搜索框内容 */
#search-box {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.toolbar-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    background-color: white;
    margin-right: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toolbar-btn:hover {
    background-color: #e0e0e0;
}

.url-container {
    flex: 1;
    display: flex;
}

#url {
    flex: 1;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

#url:focus {
    outline: none;
    border-color: #666;
}

.go-btn {
    height: 32px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 4px 4px 0;
    background-color: #4285f4;
    color: white;
    cursor: pointer;
}

.go-btn:hover {
    background-color: #3367d6;
}

webview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}